<?php
require_once "Zend/Controller/Action/Helper/Abstract.php";

class Mf_Controller_Action_Helper_View extends Zend_Controller_Action_Helper_Abstract
{
	protected $_smartyConfig;
	protected $_tmpPath;

	public function __construct($tmpPath,array $config){
		$this->_smartyConfig=$config;
		$this->_tmpPath=$tmpPath;
	}

	public function preDispatch ()
	{
		$smarty = new Mf_View_Smarty($this->_tmpPath, $this->_smartyConfig);
		$this->getActionController()->view = $smarty;
	}
}
